package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class ChatBeanList implements Serializable,IJsonParser{

	/** "cursor": 0,
    "total_count": 15,
    "next_cursor": 20,
    "messages": [
	 * 
	 */
	private static final long serialVersionUID = -5696666340749312629L;
	private int next_cursor;
	private int total_count;
	private ArrayList<ChatBean>  messages;
	private String desc ;
	private String error ;
	private Actor_conversationBean actor_conversation;
	public Actor_conversationBean getActor_conversation() {
		return actor_conversation;
	}
	public int getNext_cursor() {
		return next_cursor;
	}
	public int getTotal_number() {
		return total_count;
	}
	public ArrayList<ChatBean> getMessages() {
		return messages;
	}
	public String getDesc() {
		return desc;
	}
	public String getError() {
		return error;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, ChatBeanList.class);
		}
		return null;
	}

}
